import Demo2.text;

public class Dog extends text.Animal implements Iwalk,Irun,Iswim{
    public Dog(String name,int age){
        super(name,age);
    }

    @Override
    public void eat() {
        System.out.println(getName() + "正在吃狗粮...");
    }

    @Override
    public void walk() {
        System.out.println(getName() + "正在散步");
    }

    @Override
    public void run() {
        System.out.println(getName() + "正在跑");
    }

    @Override
    public void swim() {
        System.out.println(getName() + "正在游泳");
    }
}
